<template>
  <div class="box">
    <div class="header">
      <div class="logo">
        <img src="../assets/img/home-logo.png" alt="" />
        <span>大数据风控系统</span>
      </div>
      <div class="tab">
        <span>运单分析台</span>
      </div>
    </div>
    <vue-table v-if="vueTable" :columns='resultFormList'/>
    <!-- <div class="box1"></div> -->
    <vxeTable v-else></vxeTable>
  </div>
</template>
<script>
import vueTable from "../components/vueTable.vue";
import vxeTable from "../components/vxeTable.vue";
import {resultFormList} from "../assets/js/config";

export default {
  components: { vueTable, vxeTable },
  data() {
    return {
      vueTable: true,
      resultFormList
    };
  },
};
</script>
<style lang="less" scoped>
.box {
  padding: 20px 80px;
  font-size: 14px;
  background-color: #1c1d2f;
  color: #fff;
  .header {
    width: 100%;
    height: 70px;
    color: #fff;
    background-color: #222336;
    .logo {
      width: 250px;
      font-size: 20px;
      height: 70px;
      line-height: 70px;
      display: inline-block;
      img {
        width: 50px;
      }
    }
    .tab {
      font-size: 30px;
      line-height: 70px;
      width: calc(100% - 250px);
      display: inline-block;
      text-align: center;
    }
  }
  .box1 {
    position: fixed;
    width: 300px;
    height: 150px;
    left: 200px;
    top: 300px;
    background: linear-gradient(
      270deg,
      transparent 0%,
      rgba(192, 184, 0, 0.1) 30%,
      rgba(192, 184, 0, 0.2) 50%,
      rgba(192, 184, 0, 0.1) 70%,
      transparent 100%
    );
    border: 1px solid;
    border-image: linear-gradient(
        270deg,
        transparent,
        rgba(255, 248, 0, 1),
        transparent
      )
      1 1;
  }
}
</style>